﻿using NUnit.Framework;

namespace PoliticalClassifier.Domain.Tests
{
    [TestFixture]
    public class VoterRecordTest
    {
        [Test]
        public void VoterRecordAssignementTest()
        {
            uint id = 1220;

            VoterRecord voterRecord = new VoterRecord(id);
            Assert.AreEqual(id, voterRecord.ID);

            VoterAttribute attribute1 = new VoterAttribute("Age", 0.12345);
            VoterAttribute attribute2 = new VoterAttribute("Religion", 0.334455);
            VoterAttribute attribute3 = new VoterAttribute("Gun", 1.255);

            voterRecord.Attributes.Add(attribute1);
            voterRecord.Attributes.Add(attribute2);
            voterRecord.Attributes.Add(attribute3);
            Assert.AreEqual(voterRecord.Attributes.Count, 3);


        }
    }
}
